package structurePattern.adapter;

public class PowerAdapter {

    public ElectricSocket transfer(ElectricSocket socket) {
        if(socket.supply() == 220) {
            return new HongkongSocket();
        }
        return socket;
    }

}
